package org.ourgrid.discoveryservice.business.requester;

import java.util.ArrayList;
import java.util.List;

import org.ourgrid.common.internal.IResponseTO;
import org.ourgrid.common.internal.RequesterIF;
import org.ourgrid.discoveryservice.business.dao.DiscoveryServiceDAO;
import org.ourgrid.discoveryservice.business.dao.DiscoveryServiceDAOFactory;
import org.ourgrid.discoveryservice.request.DSClientIsUpRequestTO;

public class DSClientIsUpRequester implements RequesterIF<DSClientIsUpRequestTO>{

	public List<IResponseTO> execute(DSClientIsUpRequestTO request) {
		DiscoveryServiceDAO dao = DiscoveryServiceDAOFactory.getInstance().getDiscoveryServiceDAO();
		
		dao.peerIsUp(request.getClientUserAtServer());
		
		return new ArrayList<IResponseTO>();
	}
	
}
